//
// Created by wze-zero on 2024/9/10 010.
//
#include <iostream>

using namespace std;

bool check(int num) {
    for (int i = 2; i < num / 2; ++i) {
        if (num % i == 0) {
            return false;
        }
    }
    return true;
}

int main() {
    int num = 0;
    for (int i = 100; i < 1000; ++i) {
        check(i) ? num++ : num;
    }
    cout << num << endl;
    return 0;
}